:root {
    /* ===== Colors ===== */
    --body-color-home: #E4E9F7;
    --sidebar-color: #FFF;
    --sidebar-color-icon: #F59C42;
    --primary-color-home: #f59c42;
    --primary-color-home-light: #F6F5FF;
    --toggle-color-home: #DDD;
    --text-color-home: white;
    --text-color-home-dark: #F6F5FF;
    --background-color-cards: #FFF;
    --color-texto-titulos: #585858;
    --color-texto-subtitulos: #000000;
    --numeros-color: #262626;
    /* --ruta-imagen: url("/img/fondo2white.jpg"); */
    --color-background: transparent;
    --color-textos: black;
    --color-datatable: #7A8D9B;
    --color-icono-cargas: #50C878;
    --color-icono-descargas: #FF2400;
    --color-icono-unidades: #f59c42;


    /* ====== Transition ====== */
    --tran-03: all 0.2s ease;
    --tran-03: all 0.3s ease;
    --tran-04: all 0.3s ease;
    --tran-05: all 0.3s ease;
}

body.dark {
    --body-color-home: #18191a;
    --sidebar-color: #242526;
    --primary-color-home: #941305;
    --toggle-color-home: #fff;
    --text-color-home: white;
    --sidebar-color-icon: #EEEDE4;
    --background-color-cards: #EEEDE4;
    --color-texto-titulos: white;
    --color-texto-subtitulos: #ffffff;
    --numeros-color: white;
    /* --ruta-imagen: url("/img/fondo2.jpg"); */
    --color-background: transparent;
    --color-textos: white;
    --color-datatable: #B2B9BF;
    --color-icono-cargas: #006400;
    --color-icono-descargas: #8B0000;
    --color-icono-unidades: #f59c42;
}


.btn-warning:focus,
.btn-warning:active,
.btn-warning.active,
.open>.btn-warning.dropdown-toggle {
    color: #ED8D00;
    border-color: #ED8D00;
}




/* ? Si utilizo */


.dropdown-item:hover {
    width: auto;
}

/* Google Font Import - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}


body {
    height: calc(100%);
    background-color: var(--body-color-home);
    transition: var(--tran-05);
}

.modal-content {
    background-color: var(--background-color-cards);
}


::selection {
    background-color: var(--primary-color-home);
    color: #fff;
}



/* ===== Sidebar ===== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: calc(100%);
    width: 274px;
    padding: 10px 14px;
    padding-top: 0px;
    background: var(--sidebar-color);
    transition: var(--tran-05);
    z-index: 100;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;

}

.sidebar.close #clientName {
    transform: scale(0.000001);
}

.sidebar.close .logo-text {
    transform: scale(0.000001);
}


/* Hide scrollbar for Chrome, Safari and Opera */
.collapsibleBlock::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.collapsibleBlock {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}



/* ===== Reusable code - Here ===== */
.sidebar li {
    list-style: none;
    display: flex;
    align-items: center;
}

.sidebar.close li {
    height: 50px;
    list-style: none;
    display: flex;
    align-items: center;
    margin-top: 10%
}

.sidebar header .image,
.sidebar .icon {
    min-width: 60px;
    border-radius: 6px;
}

.sidebar .icon {
    min-width: 45px;
    border-radius: 6px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.sidebar .text {
    color: #402134;

}

body.dark .sidebar .text {
    color: #EEEDE4;
    text-shadow: none;
}

.name {
    padding-top: -10% !important;
}

.sidebar .icon {
    color: var(--sidebar-color-icon);
    text-shadow: none;
    transition: var(--tran-03);
}

.sidebar .text {
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
    opacity: 1;
}


/* =========================== */

.sidebar header {
    position: relative;
    height: 24%;
}

.sidebar.close header {
    height: 12%;
}

.sidebar header .image-text {
    display: flex;
    align-items: center;
}

.sidebar header .logo-text {
    display: flex;
    flex-direction: column;
}

header .image-text .name {
    /* margin-top: 2px; */
    font-size: 18px;
    font-weight: 600;
    color: black;
    margin-bottom: -10%;
    /* margin-top: -18%; */
}

body.dark .image-text .name {
    /* margin-top: 2px; */
    font-size: 18px;
    font-weight: 600;
    color: white;
    /* margin-top: -18%; */

}

.sidebar .logo-text {}

header .image-text .profession {
    font-size: 16px;
    margin-top: -2px;
    display: block;
}

.sidebar header .image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar header .image img {
    width: 100%;
    border-radius: 6px;

}

.sidebar header .toggle {
    position: absolute;
    top: 50%;
    right: -25px;
    transform: translateY(-50%) rotate(180deg);
    height: 25px;
    width: 25px;
    background-color: #BD1723;
    color: var(--sidebar-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;

}

body.dark .sidebar header .toggle {
    color: var(--text-color-home);
}



.sidebar .menu {
    margin-top: 0px;
    /* margin-bottom: 50%!important;  */
}

#allvehicles {
    width: 26%;

}


.sidebar li.search-box {
    border-radius: 6px;
    background-color: var(--primary-color-home-light);
    cursor: pointer;
    transition: var(--tran-05);
}

.inputsVehicleGroups {
    width: 26%;
    background-color: var(--primary-color-home-light);
}

.vehicleGroups {
    display: none;
    align-items: center;
    z-index: 100;
    position: absolute;
    top: 10px;
    left: 10px;
    border-top-left-radius: 7px;
    align-content: center;
    justify-content: center;
    justify-items: center;
}

.sidebar li.search-box input {
    height: 100%;
    width: 100%;
    outline: none;
    border: none;
    background-color: var(--primary-color-home-light);
    color: var(--text-color-home);
    border-radius: 6px;
    font-size: 17px;
    font-weight: 500;
    transition: var(--tran-05);
}

.sidebar li a {
    list-style: none;
    height: 100%;
    background-color: transparent;
    display: flex;
    align-items: center;
    width: 170%;
    border-radius: 6px;
    text-decoration: none;
    transition: var(--tran-03);
}

.sidebar li a:hover {
    transform: scale(1.1);
    background-color: #CF4222;
    color: var(--text-color-home) !important;
    text-shadow: none;
}

body.dark .sidebar li a:hover {
    background-color: #BD1822;
    color: var(--text-color-home) !important;
}

.sidebar li a:hover .icon,
.sidebar li a:hover .text {
    color: #EEEDE4;
    text-shadow: none;
}

body.dark .sidebar li a:hover .icon,
body.dark .sidebar li a:hover .text {
    color: white;

}

.sidebar.home {
    left: 15%;
}

.sidebar .menu-bar {
    height: calc(100% - 100px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.menu-bar::-webkit-scrollbar {
    display: none;
}

.sidebar .menu-bar .mode {
    border-radius: 6px;
    position: relative;
    /* margin-bottom: 10px; */
    transition: var(--tran-05);
}

/* CERRAR MENU */

.sidebar.close {
    height: calc(100% + 40px);
    width: 85px;
    opacity: 10 !important;
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;

}

.gm-iv-container {
    margin-left: 20px;
}

.sidebar.close .text {
    opacity: 0;
    /* transform: scale(0.000001); */
}

.sidebar.close .menu-clients {
    opacity: 10;
}

.sidebar.close .toggle {
    transform: translateY(-50%) rotate(0deg);
}

/* .sidebar.close~.home {
    left: 70px;
    height: 100vh;
    width: 100%;
    padding-left: -10% !important;
} */

/* ESTILOS PARA TELEFONO */

.flesha {
    opacity: 0;
}


@media (max-width: 768px) {

    .mapa_controles {
        position: relative;
    }

    #floating-panel {
        /* position: absolute;
        z-index: 5;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 10px;
        box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
        padding: 15px;
        width: auto;
        left: -2%;
        top: 5%;
        font-weight: bold;
        display: flex;
        flex-direction: column; */
        transform: scale(0.00001);
        /* ESTA PARTE SE PUEDE CAMBIAR LA ESCALA PARA PODER VISUALIZAR LAS HERRAMIENTAS EN MODO RESPONSIVE */
    }

    .btn-mapa {
        margin: 10px;
    }

    .flesha {
        opacity: 1;
        display: inline-block;
        /* Necesario para que funcione la rotación */
        transition: transform 0.5s ease;
        /* Transición de rotación */
    }

    .cerrado .flesha {
        transform: rotate(180deg);
        /* Rotar 90 grados */

    }

    #map {
        margin-left: 8px;
        border-radius: 0px !important;
        width: calc(100% - 14%) !important;
        height: 100vh !important;
    }

    .cerrado {
        transition: max-height 0.5s ease;
        max-height: 7% !important;
        overflow: hidden !important;
    }

    .abierto {
        transition: max-height 0.5s ease;
    }


    .sidebar li a:hover {
        transform: scale(1.1);
        background-color: #CF4222;
        color: var(--text-color-home) !important;
        text-shadow: none;
    }

    .sidebar.close li a {

        max-width: 40%;
    }

    .sidebar li {

        max-width: 100%;
    }

    .mode {
        margin-bottom: 0px !important;
    }

    .sidebar.close li {

        max-width: 40%;
    }

    body.dark .sidebar li a:hover {
        background-color: #BD1822;
        color: var(--text-color-home) !important;
    }

    .abierto {

        max-height: 100%;
    }

    .sidebar.close .menu-links,
    .sidebar.close .bottom-content,
    .sidebar.close .principal {
        /* display: none; */
        left: 2px;
    }

    .collapsibleBlock {
        width: 85% !important;
        margin: 10px !important;
        height: calc(90%);

    }


    .sidebar .menu-bar {
        height: calc(100% - 150px);
        margin-right: 20px !important;
        width: 100%;
        margin-top: -10%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        overflow: hidden;
    }

    .sidebar.close li a:hover {
        transform: none;
        /* Elimina la transformación */
        background-color: initial;
        /* Restaura el color de fondo por defecto */
        text-shadow: none;
        /* Elimina la sombra de texto */
    }

    .sidebar.close .icon {
        color: var(--primary-color-home);
    }

    body.dark .sidebar.close li a:hover {
        transform: none;
        /* Elimina la transformación */
        background-color: initial;
        /* Restaura el color de fondo por defecto */
        text-shadow: none;
        /* Elimina la sombra de texto */
    }

    .sidebar.close .desplegar {
        display: block;
        opacity: 1;
        position: relative;
        right: 16px;
        transition: none;

        animation: none;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: calc(100%);
        width: 265px;
        padding: 10px 14px;
        background: var(--sidebar-color);
        transition: var(--tran-05);
        z-index: 100;
    }

    .sidebar.close header .image img {
        width: 100%;
        border-radius: 6px;
        margin-top: 40% !important;
    }

    .sidebar.close {
        background: var(--sidebar-color);
        padding: 0px !important;

        max-width: 15%;
        /* border:2px solid black; */
        display: flex;
        /* Utiliza flexbox */
        flex-direction: column;
        /* Alinea elementos en una columna */
        justify-content: center;
        /* Centra verticalmente */
        align-items: center;
        /* Centra horizontalmente */
    }


    #logout-form {
        position: relative;
        top: -20px !important;
    }

    #fleetStatusCollapsible {
        position: fixed;
        z-index: 10;
        top: 40px;
        left: 50px;
        margin-right: 10px !important;
        transform: scale(0.89);
        max-height: 90%;
    }

    .sidebar.close .toggle {
        top: 100px;
        left: 15px;
        width: 35px;
        height: 35px;
        margin-bottom: 20px;
        z-index: 10;
    }

    /* .toggle-switch,
    .mode-text,
    .sun-moon {
        margin-top: -25px;

    } */

    .sidebar.close header {
        width: 100%;
        top: -20px;
        right: 3px;
    }

    /* .mapClass {
        position: absolute !important;
        width: 88% !important;
        height: 100% !important;
        left: -25px;
    } */

    #trafico,
    #candado,
    #style-selected,
    #cuadroRegla {
        position: absolute;
        left: 78% !important;
    }

    body.dark header .image-text .name {
        margin-top: 0%;
    }

    .sidebar.close .image-text {
        margin-top: -20px;
    }

    .sidebar.close .toggle-switch {
        margin-right: -40px;
    }

    .sidebar .toggle-switch {
        /* margin-right: -40px; */
    }

    .sidebar.close .sun-moon {
        opacity: 0 !important;
    }

    .sidebar.close .logo-text {
        transform: scale(0.000001);

    }
}

/* FIN DE ESTILOS PARA TELEFONO */

.menu-bar .mode .sun-moon {
    height: 50px;
    width: 60px;

}

.mode .sun-moon i {
    position: absolute;
}

.mode .sun-moon i.sun {
    opacity: 0;
}

.mode .sun-moon span.sun {

    opacity: 0;
}

body.dark .mode .sun-moon i.sun {
    opacity: 1;
}

body.dark .mode .sun-moon i.moon {
    opacity: 0;
}

.menu-bar .bottom-content .toggle-switch {
    position: absolute;
    right: 0;
    height: 100%;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
}

/* .dropdown-menu[data-popper-placement="bottom-start"],
.dropdown-menu[data-popper-placement="bottom"],
.dropdown-menu[data-popper-placement="bottom-end"] {
    --bs-popper-arrow-transform: translate(0, -3px);
    position: absolute !important;
    inset: auto auto 0 0 !important;
    margin-bottom: 44% !important;
    margin-left: 20px !important;
    transform: scale(0.9) !important;
} */
.dropdown-menu[data-popper-placement="bottom-start"],
.dropdown-menu[data-popper-placement="bottom"],
.dropdown-menu[data-popper-placement="bottom-end"] {
    --bs-popper-arrow-transform: translate(0, -3px);
    /* Aseguramos que el menú esté en la posición adecuada sin margen */
    inset: auto auto 0 0 !important;
    margin-bottom: 140px !important;
    /* Eliminamos el margen inferior */
    margin-left: 0px !important;
    /* Alineamos el menú directamente con el botón */
    transform: translate(0, 7%) !important;
    /* Mover el menú justo encima del botón */
    transform-origin: bottom right;
    /* Ajustamos el origen del menú despzzzzlegable */
    transform: scale(0.9) !important;
}

.bottom-content {
    /* background-color: red!important; */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-bottom: 10%;
}

.bottom-content li a {
    opacity: 10;
}

/*
.mode {
    margin-top: 10% !important;
} */

.sidebar .menu-bar {
    /* background-color: green!important; */
    height: 84% !important;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    /* padding-bottom: 20px; */
}

.sidebar .dropdown-menu {
    background-color: var(--body-color-home);

}

.toggle-switch .switch {
    position: relative;
    height: 22px;
    width: 40px;
    border-radius: 25px;
    background-color: var(--toggle-color-home);
    transition: var(--tran-05);
}

.dpitem {
    width: 100% !important;

}

.switch::before {
    content: '';
    position: absolute;
    height: 15px;
    width: 15px;
    border-radius: 50%;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    background-color: var(--sidebar-color);
    transition: var(--tran-04);
}

body.dark .switch::before {
    left: 20px;
}

/* AQUI VAN LOS ESTILOS DEL MODO OBSCURO DE ESAS COSAS */
.card {
    background-color: white;
}


body.dark .card {
    /* background: linear-gradient(130deg, #FFF,#ffeddb); */
    background-color: #f0f0f0;

}

.home {
    padding: 30px;
    position: relative;
    top: 0px;
    left: 70px;
    height: 100vh;
    width: 100%;
    padding-right: 76px;
    background-color: var(--body-color-home);
    transition: var(--tran-05);
}

.home2 {
    padding-right: 76px;
}

.home .text {
    font-size: 30px;
    font-weight: 500;
    color: var(--text-color-home);
    padding: 12px 60px;
}

body.dark .home .text {
    color: var(--text-color-home);
}

#fleetStatusTable {
    font-size: small;
}

.footer {

    background-color: var(--body-color-home);
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 40px;
    color: white;
}

.footer-text {
    color: var(--text-color-home);
    background-color: var(--body-color-home);

}

.collapsibleBlock {
    width: 25%;
    height: calc(90%);
    position: absolute;
    top: 25px;
    left: 30px;
    border-radius: 20px;
    overflow: hidden;
}

.collapsibleBlock .container {
    background-color: var(--primary-color-home);
}

.button-menu:hover {
    cursor: pointer;
}

/* ?Container de sidebars*/
.avaibleParameters {
    align-items: left;
    cursor: pointer;
}

.avaibleParameters:hover {
    background-color: var(--primary-color-home);
}

.card-body {
    justify-content: center;
}



.mapClass {
    margin-left: 19px;
    border-radius: 0px !important;
    width: calc(100% - 92px) !important;
    height: 100vh !important;
    border: none;
    /* Evita que haya borde alrededor */
}



.fleetStatusClass {
    display: none;
    z-index: 100;
    position: absolute;
    top: 20px;
    left: 10px;
    border-top-left-radius: 7px;
    padding: 10px;
}

.img-icon {
    width: 30px;
    height: 30px;
    padding: 0px;
    margin: 3px;
    z-index: -1;

}

.modal-header {
    color: #fff !important;

    -moz-border-top-left-radius: 7px;
    -moz-border-top-right-radius: 7px;
    -webkit-border-top-left-radius: 7px;
    -webkit-border-top-right-radius: 7px;
    padding: 10px;
}

.modal-header h5 {
    font-weight: bold;
    font-size: 18px
}



.list-filter-container {

    justify-content: space-around;
    width: 26%;
    padding: 7px;
    display: contents;

    background-color: #fafafa;
}

.filtred-content {
    display: flex;
    align-items: center;
}

.tabs-container {
    display: flex;
    width: 100%;
    justify-content: space-evenly;
    z-index: -1;

}

.body-back {
    background-color: var(--background-color-cards);
}

.tabs-item-container {
    display: flex;
    width: 100%;
    z-index: 9;
}

.header-container {
    background-color: var(--primary-color-home);
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    text-align: center;
    position: sticky !important;
    top: 0;
    z-index: 10;
}


.modal-header {
    background-color: var(--primary-color-home) !important;
}

.td-vehicle {
    width: 30%;
}

::-webkit-scrollbar-thumb {
    background-color: var(--primary-color-home) !important;
    border: 1px;
    border-style: groove;
    border-color: #c1c1c1;
    border-bottom-right-radius: 20px !important;
    border-bottom-left-radius: 20px !important;
    border-top-left-radius: 20px !important;
    border-top-right-radius: 20px !important;
}

.my-custom-scrollbar {
    border-bottom-right-radius: 20px;
    border-bottom-left-radius: 20px;
    background-color: var(--background-color-cards);
    position: relative;
    height: 74vh;
    overflow: auto;
}

.bs-tooltip-left,
.bs-tooltip-auto[x-placement^=left] {
    padding: 0 0.4rem;
}

.bs-tooltip-left .arrow,
.bs-tooltip-auto[x-placement^=left] .arrow {
    right: 0;
    width: 0.4rem;
    height: 0.8rem;
}

.bs-tooltip-left .arrow::before,
.bs-tooltip-auto[x-placement^=left] .arrow::before {
    left: 0;
    border-width: 0.4rem 0 0.4rem 0.4rem;
    border-left-color: #000;
}

/* Extra small devices (phones, 600px and down) */
/* @media only screen and (max-width: 600px) {

    .tabs-container {
        width: autoy;
    }
} */

/* Small devices (portrait tablets and large phones, 600px and up)
@media only screen and (min-width: 600px) {
    .collapsibleBlock {
        width: 400px;
        height: calc(90%);
    }

    .tabs-container {
        width: 400px;
    }
} */

/* Medium devices (landscape tablets, 768px and up) */
/* @media only screen and (min-width: 768px) {
    .collapsibleBlock {
        width: 40%;
        height: calc(85%);
    }

    .tabs-container {
        width: auto;
    }
    .sidebar .menu{
        transform: scale(0.7);
    }
} */

/* Large devices (laptops/desktops, 992px and up) */
/* @media only screen and (min-width: 992px) {
    .collapsibleBlock {
        width: 500px;
        height: calc(90%);
    }

    .tabs-container {
        width: 500px;
    }

    /* .mapClass {
        width: 96.3%;
        z-index: 0;
        padding: 0;
        height: calc(100%);
    } */
/* }  */

/* @media only screen and (min-width: 1340px) {
    .mapClass {
        width: 96.3%;
        z-index: 0;
        padding: 0;
        height: calc(100%);
    }
} */


.labels {
    background-color: white;
    font-family: "Lucida Grande", "Arial", sans-serif;
    font-size: 10px;
    font-weight: bold;
    text-align: center;
    width: 100%;
    margin: 3px;
    border: 1px solid black;
    margin-top: 60px;
}

#mySidenav-rutas {
    position: absolute;
}

.flexy {
    overflow-y: auto;
    /* Trigger vertical scroll    */
    overflow-x: hidden;
    width: 100%;
    height: 65vh;
}

#distanceKm {
    width: 30%;
}

.container_principal {
    /* overflow: scroll; */
    /* display: grid !important; */
    /* grid-template-columns: repeat(3, 1fr); */
    /* gap: 5px; */
    /* justify-items: stretch; */
    background-image: var(--ruta-imagen);
    /* Reemplaza con la ruta de tu imagen */
    background-size: cover;
    /* Ajusta la imagen para que cubra todo el fondo */
    background-attachment: fixed;
    /* Mantiene la imagen fija */
}

.titulos_panel {
    max-height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0)) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    min-height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    padding-top: 10px;
    text-align: center;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
    /* ELIMINAR EL COPIAR TEXTO */
    user-select: none;
    /* Desactiva la selección de texto */
    -webkit-user-select: none;
    /* Desactiva la selección de texto en navegadores webkit (Chrome, Safari) */
    -moz-user-select: none;
    /* Desactiva la selección de texto en navegadores Firefox */
    -ms-user-select: none;
    /* Desactiva la selección de texto en Internet Explorer/Edge */
}

.panel3 {
    margin-bottom: 15%;
}

.titulos_panel:not(:hover) {
    opacity: 1;
    transform: scale(0.95);
}

.cabecera_panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cuerpo_panel {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 75%;
}

.cuerpo_panel h2 {
    color: var(--numeros-color);
    font-size: 50px;
    font-weight: bold;
}

/* GRAFICAS POSITIVAS  */
.cuerpo_panel .graphics {
    color: #0aa414;
    margin-left: 5%;
    margin-bottom: 3%;
    font-size: 50px;
}

/* GRAFICAS NEGATIVAS */
.cuerpo_panel .graphicsbad {
    color: #e32f21;
    margin-left: 5%;
    margin-bottom: 3%;
    font-size: 50px;
}

.show_numbers {
    min-height: 90px;
    color: var(--numeros-color);
    font-weight: bold;
}

.titulos_panel h5 {
    color: var(--color-texto-titulos) !important;
    font-size: 24px;
    font-weight: bold;
}

.subtitulo {
    color: var(--color-texto-subtitulos) !important;
    font-size: 14px;
    font-weight: bold !important;
}

.icono_cargas {
    color: var(--color-icono-cargas);
    font-size: 24px;
    margin-left: 90px;
    font-weight: bold;
}

.icono_descargas {
    color: var(--color-icono-descargas);
    font-size: 24px;
    margin-left: 90px;
    font-weight: bold;
}

.icono_unidades {
    color: var(--color-icono-unidades);
    font-size: 24px;
    margin-left: 90px;
    font-weight: bold;
}

/* ESTILOS PARA EL DIV DE LA GRAFICA */
.graficas {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    /* Necesario para usar z-index en los hijos */
    display: flex;
    /* Activar Flexbox */
    justify-content: center;
    /* Centrar horizontalmente */
    align-items: center;
    /* Centrar verticalmente */
    border-radius: 20px;
    height: 100%;
    z-index: 1;
    /* Controlar el apilamiento */
}

.grafica_buena {

    padding: 0;
    /* Posición absoluta dentro del contenedor padre */
    width: 100%;
    /* Fijar ancho del contenedor */
    height: 100%;
    /* Fijar altura del contenedor */
    display: flex;
    /* Activar Flexbox en el contenedor .grafica_buena */
    justify-content: center;
    /* Centrar el canvas horizontalmente */
    align-items: center;
    /* Centrar el canvas verticalmente */

}




@media (max-width: 768px) {
    .container_principal {}

    .container_principal>div {
        margin-right: -2%;
        margin-left: -2%;
    }

    .titulos_panel {
        max-height: 90%;
        min-height: 100px;
    }
}

/* @media (max-width: 480px) {
    .container_principal {
        margin-left: -4%;
    }

    .card-principal {
        width: 108%;
        margin-left: -2% !important;
    }

    .graficas {
        height: 100%;
    }

    .titulos_panel {
        height: 200px;
    }

    .sidebar.close~.home {

        height: 100%;
        margin-left: -5% !important;
    }



    .container_principal>div {
        margin-left: 1px;
    }
} */


/* ESTILOS PARA GRAFICAS */
.highcharts-figure,
.highcharts-data-table table {
    min-width: 99%;
    max-height: 90%;
}

.highcharts-data-table table {
    font-family: Verdana, sans-serif;
    border-collapse: collapse;
    margin: 10px auto;
    text-align: center;
    width: 100%;
    background-color: var(--color-icono-unidades);
}

.highcharts-data-table tr {
    transition: background-color 0.2s ease;
    /* Agrega una transición al color de fondo */
}

.highcharts-data-table caption {
    padding: 1em 0;
    font-size: 1.2em;
    color: #555;
}

.highcharts-data-table th {
    font-weight: 600;
    padding: 0.5em;
}

.highcharts-data-table td,
.highcharts-data-table th,
.highcharts-data-table caption {
    padding: 0.5em;
}

.highcharts-data-table thead tr,
.highcharts-data-table tr:nth-child(even) {
    background: #f8f8f8;
}

.highcharts-data-table tr:hover {
    background: #f5ebde;
}

.panel {
    /* border: 1px solid black; */
    margin-top: 20px;
    padding: 0px;
    left: 14px;

}

.js {
    min-width: 100% !important;
}


/* IMPORANTE PARA AJUSTAR EL TAMANO DE LA PAGINA PRINCIPAL, ESTE ESTILO SOLO APLICA PARA LA SECCION DE PANEL DE CONTROL */
.sidebar.close~.home2 {
    left: 70px;
    height: 100%;
    width: 98%;
}

.sidebar~.home2 {
    height: 100%;
}

.fila_grafica {
    padding-top: 2%;
    margin-bottom: 2%;

    /* color: #50C878; CARGAS */
    /* color:#FF2400; DESCARGAS */
    /* color: #87CEEB; UNIDADES */
}



@import url("https://netdna.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css");

.highcharts-figures {
    margin: 0;
    width: 100%;
    height: 100%;
}

#play-controls {
    max-width: 100%;
    margin: 1em auto;
}

#containers {
    height: 100%;
    max-width: 100%;
    margin: 0 auto;
}

#containers2 {
    height: 100%;
    max-width: 100%;
    margin: 0 auto;
}

#play-pause-button {
    margin-left: 10px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    border: 1px solid rgba(2, 117, 255, 1);
    border-radius: 25px;
    color: white;
    background-color: rgba(2, 117, 255, 1);
    transition: background-color 250ms;
}

#play-pause-button:hover {
    background-color: rgba(2, 117, 255, 0.5);
}

#play-range {
    transform: translateY(2.5px);
    width: calc(100% - 90px);
    background: #f8f8f8;
}

#play-pause-button2 {
    margin-left: 10px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    border: 1px solid rgba(2, 117, 255, 1);
    border-radius: 25px;
    color: white;
    background-color: rgba(2, 117, 255, 1);
    transition: background-color 250ms;
}

#play-pause-button2:hover {
    background-color: rgba(2, 117, 255, 0.5);
}

#play-range2 {
    transform: translateY(2.5px);
    width: calc(100% - 90px);
    background: #f8f8f8;
}

.graficas_mapa {

    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.grafica_mapa {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#map_float {
    height: 90vh;
    width: 100%;
    border-radius: 20px;
}

#floating-panel {
    position: absolute;
    margin-bottom: 75.5vh;
    z-index: 5;
    background: #eeeeee;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    padding: 7px;
    width: auto;
    color:#000000;
    text-align: center;
    font-weight: bold;

}

#floating-panel2 {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    margin-left: 10px;
    z-index: 5;
    background: #eeeeee;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    padding: 7px;
    color:#666666;
    text-align: left;
    font-weight: bold;
}

.btn-mapa {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.1));
    padding: 8px;
    margin-left: 10px;
    margin-right: 10px;
    border-radius: 10px;
    color: #b9b9b9;
    font-size: 12px;
    font-weight: bold;
    border: none;
    transition: all 300ms;

    &:hover {
        color: #dfdfdf;
        /* box-shadow: 1px 1px 5px #babecc, -1px -1px 5px #ffffff; */
        cursor: pointer;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.2));
        transform: scale(1.1);
    }
}

.seleccion_usuario {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0)) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    min-height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    color: var(--color-textos);
    font-weight: bold;
    width: 32%;

}

.mapa_controles {
    position: relative;
}

@media (max-width: 768px) {

    /* Adjust the breakpoint as needed */
    .seleccion_usuario {
        width: 100%;
        /* Full width on mobile */
    }
}

.seleccion_usuario option {
    background: #9d989c;
}



.empty-message {
    color: var(--color-textos);
}

.sun-moon {
    display: flex;
    justify-content: center;
    /* Centra horizontalmente */
    align-items: center;
}

.sidebar.close .sun-moon {
    opacity: 0 !important;
}


.select2-results__option {
    font-size: 12px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    font-size: 12px !important;
}

/* .card-bitacora {
    right: 0%;
    width: 100%;
    margin-top: 20px;
    margin-right: 10px;
    margin-left: 10px;
} */
.table {
    width: 100% !important;
}


.map-buttons {
    width: 35px !important;
    height: 35px !important;
}

@media screen and (min-width: 320px) and (max-width: 767px) and (orientation: landscape) {
    html {
        transform: rotate(-90deg) !important;
        transform-origin: left top !important;
        width: 100vh !important;
        overflow-x: hidden !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
    }
}


@media screen and (max-width:768px) {
    #floating-panel2 {
        position: absolute;
        top: 13%;
        /* left: 25%; */
        /* transform: translateX(50%); */
        margin-left: 10px;
        z-index: 5;
        background: #eeeeee;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 10px;
        box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
        padding: 7px;
        color: #666666;
        text-align: left;
        font-weight: bold;
    }
    #floating-panel2 br {
        display: none; /* Oculta todos los <br> dentro del div */
    }
    .home {
        padding: 30px;
        position: relative;
        top: 0px;
        left: 84px;
        height: 100vh;
        width: 89%;
        padding-right: 76px;
        background-color: var(--body-color-home);
        transition: var(--tran-05);
    }

    #map {
        margin-left: 3px;
        border-radius: 0px !important;
        width: calc(100% - 1%) !important;
        height: 100vh !important;
    }

    #trafico,
    #candado,
    #style-selected,
    #cuadroRegla {
        position: absolute;
        left: 93% !important;
    }

    .card-principal {
        width: 110%;
        margin-left: 0% !important;
    }
}

@media screen and (max-width: 430px) {
    .sidebar.close~.home2 {
        left: 45px;
        height: 100%;
        padding-right: 15%;
        width: 98%;
    }

    #map {
        margin-left: 3px;
        border-radius: 0px !important;
        width: calc(100% - 13%) !important;
        height: 100vh !important;
    }

    .home {
        padding: 30px;
        position: relative;
        top: 0px;
        left: 61px;
        height: 100vh;
        width: 98%;
        padding-right: 76px;
        background-color: var(--body-color-home);
        transition: var(--tran-05);
    }

    .card-principal {
        width: 110%;
        margin-left: -5% !important;
    }

    #trafico,
    #candado,
    #style-selected,
    #cuadroRegla {
        position: absolute;
        left: 77% !important;
    }
}

@media screen and (max-width: 425px) {
    .home {
        padding: 30px;
        position: relative;
        top: 0px;
        left: 60px;
        height: 100vh;
        width: 85%;
        padding-right: 76px;
        background-color: var(--body-color-home);
        transition: var(--tran-05);
    }

    #map {
        margin-left: 3px;
        border-radius: 0px !important;
        width: calc(100% - 1%) !important;
        height: 100vh !important;
    }

    #trafico,
    #candado,
    #style-selected,
    #cuadroRegla {
        position: absolute;
        left: 88% !important;
    }

    .card-principal {
        width: 136%;
        margin-left: -9% !important;
    }

    .sidebar.close~.home {
        margin-left: 0% !important;
    }

    .sidebar.close {
        height: calc(100% + 0px) !important;
    }

    .sidebar.close .bottom-content {
        margin-top: 50%;
        height: 30% !important;
    }

    .sidebar .menu {
        margin-top: 3% !important;
        height: 70%;
    }

    .sidebar li {
        max-width: 100%;
        padding-top: 5%;
        padding-bottom: 0%;
    }

    .sidebar.close .menu {
        margin-top: 70% !important;
        height: 70%;
    }

    .sidebar header {
        margin-top: -5%;
    }

    .sidebar.close li {
        height: 16.6%;
        padding: 0px 0px 30% 24%;
    }

    .dropdown-menu[data-popper-placement="bottom-start"],
    .dropdown-menu[data-popper-placement="bottom"],
    .dropdown-menu[data-popper-placement="bottom-end"] {
        --bs-popper-arrow-transform: translate(0, -3px);
        inset: auto auto 0 0 !important;
        margin-bottom: 59% !important;
        margin-left: 0px !important;
        transform: translate(0, 7%) !important;
        transform-origin: bottom right;
        transform: scale(0.845) !important;
    }
}

@media screen and (max-width: 375px) {
    .home2 {
        width: 20% !important;
        margin-left: 3px;
        border-radius: 0px !important;
        width: calc(100% - 15%) !important;
    }

    .card-principal {
        width: 104%;
        margin-left: 0% !important;
    }

    #map {
        margin-left: 3px;
        border-radius: 0px !important;
        width: calc(100% - 2%) !important;
        height: 100vh !important;
    }

    .sidebar.close~.home {
        left: 72px;
        width: 87%;
        height: 100%;
        margin-left: -5% !important;
        padding: 10px 20px 10px 10px;
    }

    .sidebar .menu {
        margin-top: 3% !important;
        height: 70%;
    }

    .sidebar.close .menu {
        margin-top: 73% !important;
    }

    .sidebar.close {
        height: calc(100% + 0px) !important;
    }

    .home {
        left: 75px;
        width: 85%;
        height: 100%;
        padding: 10px 20px 10px 10px;
    }

    #trafico,
    #candado,
    #style-selected,
    #cuadroRegla {
        position: absolute;
        left: 85% !important;
    }

    .sidebar .bottom-content {
        margin-top: 0%;
    }

    .sidebar.close .bottom-content {
        margin-top: 90%;
    }

    .sidebar header {
        position: relative;
        height: 24%;
        margin-top: -5%;
    }

    .dropdown-menu[data-popper-placement="bottom-start"],
    .dropdown-menu[data-popper-placement="bottom"],
    .dropdown-menu[data-popper-placement="bottom-end"] {
        --bs-popper-arrow-transform: translate(0, -3px);
        inset: auto auto 0 0 !important;
        margin-bottom: 59% !important;
        margin-left: 0px !important;
        transform: translate(0, 7%) !important;
        transform-origin: bottom right;
        transform: scale(0.845) !important;
    }
}

@media screen and (max-width: 320px) {
    .sidebar.close~.home {
        left: 64px;
        height: 100%;
        width: 85%;
        margin-left: -5% !important;
    }

    #map {
        margin-left: 3px;
        border-radius: 0px !important;
        width: calc(100% - 2%) !important;
        height: 100vh !important;
    }

    .collapsibleBlock {
        width: 90% !important;
    }

    #fleetStatusCollapsible {
        left: 10%;
    }

    .tabs-container {
        width: 100%;
        margin-left: -6%;
        transform: scale(0.9);
    }

    .sidebar.close {
        height: calc(100%);
    }

    .sidebar.close.bottom-content {
        margin-top: -25%;
    }

    .sidebar.bottom-content {
        margin-top: 0%;
    }

    .sidebar.close li {
        margin-top: 0%;
    }

    .my-custom-scrollbar {
        width: 98%;
    }

    .card-principal {
        width: 108%;
        margin-left: -3% !important;
    }

    .sidebar.close .menu-bar {

        margin-right: 0px !important;
        width: 100%;
        margin-top: 20%;
    }

    .sidebar .menu-bar {
        height: 80% !important;
        margin-right: 0px !important;
        width: 100%;
        margin-top: -10%;
    }

    .sidebar li {
        padding: 0px 0px 5% 0px;
    }

    .sidebar .menu {
        height: 70%;
    }

    .sidebar header .image-text .name {
        /* margin-top: 2px; */
        font-size: 18px;
        font-weight: 600;
        color: black;
        margin-bottom: -25%;
        /* margin-top: -18%; */
    }

    .sidebar.close .menu {
        margin-top: 40% !important;
        height: 70%;
    }

    .bottom-content {
        height: 30%;
        margin-top: -5%;
        justify-content: space-between;
        margin-bottom: 0%;
    }

    .sidebar.close .toggle-switch {
        margin-right: -180%;
    }

    .sidebar.close.nav-link {
        height: 80%;

    }

    .sidebar.close li {
        height: 16.6%;
        padding: 0px 0px 30% 0px;
    }

    .sidebar li a:hover {
        transform: scale(1.05);
        background-color: #CF4222;
        color: var(--text-color-home) !important;
        text-shadow: none;
        width: 85%;
        margin-left: 3%;
    }

    .sidebar header {
        margin-bottom: 10%;
    }

    .sidebar.close~.home2 {
        width: 77% !important;
        padding: 10px 0px 0px 0px;
    }

    .icono_descargas {
        margin-left: 0px;
    }

    .icono_unidades {
        margin-left: 0px;
    }

    body.dark header .image-text .name {
        margin-top: 0%;
        color: white;
    }

    /* .sidebar .dropdown-menu {
        transform: scale(0.825) !important;
    }

    .sidebar.close .dropdown-menu {
        position: absolute;
        inset: auto auto 0px 0px;
        margin: 0px;
        transform: translate3d(16px, -177px, 0px);
    } */
    .dropdown-menu[data-popper-placement="bottom-start"],
    .dropdown-menu[data-popper-placement="bottom"],
    .dropdown-menu[data-popper-placement="bottom-end"] {
        --bs-popper-arrow-transform: translate(0, -3px);
        inset: auto auto 0 0 !important;
        margin-bottom: 59% !important;
        margin-left: 0px !important;
        transform: translate(0, 7%) !important;
        transform-origin: bottom right;
        transform: scale(0.845) !important;
    }
}


.cuerpo_panel {
    text-align: center;
}

.leyenda {
    font-size: 20px;
    font-weight: bold;
    /* Ajusta el tamaño según lo necesites */
    /* color:var(--color-textos); */
    color: #0d9116;
    margin-top: 10px;
    /* Ajusta el margen si es necesario */
}
.leyenda2 {
    font-size: 20px;
    font-weight: bold;
    /* Ajusta el tamaño según lo necesites */
    /* color:var(--color-textos); */
    color: #e32f21;;
    margin-top: 10px;

    /* Ajusta el margen si es necesario */
}
